package com.lyl.module.constant;

/**
 * @author Mr.Luo
 * @date 2022-07-21 09:59
 * @desc 阿里云盘url常量
 */
public class AliYunUrlConstant {
    /**
     * 获取登录二维码
     */
    public static final String GET_LOGIN_QR_CODE = "https://passport.aliyundrive.com/newlogin/qrcode/generate.do?appName=aliyun_drive";

    /**
     * 检车登录二维码状态
     */
    public static final String CHECK_QR_CODE_STATE = "https://passport.aliyundrive.com/newlogin/qrcode/query.do?appName=aliyun_drive";

    /**
     * 身份认证url
     */
    public static final String AUTHENTICATION_URL = "https://auth.aliyundrive.com/v2/oauth/authorize?client_id="+ ALIYUN_GLOBAL_VARIABLE.CLIENT_ID+"&redirect_uri=https://www.aliyundrive.com/sign/callback&response_type=code&login_type=custom&state={\"origin\":\"https://aliyundrive.com\"}";

    /**
     * 使用token认证
     */
    public static final String TOKEN_LOGIN = "https://auth.aliyundrive.com/v2/oauth/token_login";

    /**
     * 获取token
     */
    public static final String GET_TOKEN = "https://api.aliyundrive.com/token/get";

    /**
     * 刷新token
     */
    public static final String REFRESH_TOKEN = "https://api.aliyundrive.com/token/refresh";

    /**
     * 获取文件列表
     */
    public static final String FILE_LIST = "https://api.aliyundrive.com/adrive/v3/file/list";
    public static final String GET_DOWNLOAD_URL = "https://api.aliyundrive.com/v2/file/get_download_url";
    public static final String CREATE_FILE_URL = "https://api.aliyundrive.com/adrive/v2/file/createWithFolders";
    public static final String COMPLETE_FILE = "https://api.aliyundrive.com/v2/file/complete";
}
